package com.jianbing.lakk.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianbing.common.annotation.Excel;
import com.jianbing.common.core.domain.BaseEntity;

/**
 * 金币记录对象 lakk_usercoinrecord
 * 
 * @author windbless
 * @date 2024-06-25
 */
public class LakkUsercoinrecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userid;

    /** 获取金币数 */
    @Excel(name = "获取金币数")
    private Long amountofcoinsobtained;

    /** 获取原因 */
    @Excel(name = "获取原因")
    private String reasonforobtainingcoins;

    /** 获取时间 */
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "获取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timeofcoinacquisition;

    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setAmountofcoinsobtained(Long amountofcoinsobtained) 
    {
        this.amountofcoinsobtained = amountofcoinsobtained;
    }

    public Long getAmountofcoinsobtained() 
    {
        return amountofcoinsobtained;
    }
    public void setReasonforobtainingcoins(String reasonforobtainingcoins) 
    {
        this.reasonforobtainingcoins = reasonforobtainingcoins;
    }

    public String getReasonforobtainingcoins() 
    {
        return reasonforobtainingcoins;
    }
    public void setTimeofcoinacquisition(Date timeofcoinacquisition) 
    {
        this.timeofcoinacquisition = timeofcoinacquisition;
    }

    public Date getTimeofcoinacquisition() 
    {
        return timeofcoinacquisition;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userid", getUserid())
            .append("amountofcoinsobtained", getAmountofcoinsobtained())
            .append("reasonforobtainingcoins", getReasonforobtainingcoins())
            .append("timeofcoinacquisition", getTimeofcoinacquisition())
            .toString();
    }
}
